package 线程的状态;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-10-26
 * Time: 10:59
 */
public class TestDemo8 {
    public static void main(String[] args) {
        //使用线程池来创建线程
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        executorService.submit(new Runnable() {
            @Override
            public void run() {
                System.out.println("使用线程池来创建线程!!!");
            }
        });

    }
}
